﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Expenses_Screens.aspx.cs" Inherits="School.Pages.Accounting.Expenses_Screens" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="right" dir="rtl" style="width: 964px">
        <tr>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div id="view">
                    <asp:Panel ID="Paneladd" runat="server" Visible="False">
                        <fieldset>
                            <legend id="Legend1" class="opendot">إدخال البيانات</legend>
                            <table dir="rtl" style="width: 80%; float: right">
                                <tr>
                                    <td nowrap="nowrap" style="width: 90px">
                                        نوع الايراد
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlExp" runat="server" DataTextField="Name" DataValueField="Id"
                                            Width="150px" AppendDataBoundItems="True" CssClass="LstCamp">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlExp"
                                            Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="St" InitialValue="-1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap" style="width: 90px">
                                        الشاشة
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlScreen" runat="server" CssClass="Lstdist" Width="150px"
                                            AppendDataBoundItems="True" DataTextField="Name" DataValueField="Id">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlScreen"
                                            Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="-1" ValidationGroup="St">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 90px">
                                    </td>
                                    <td>
                                        <asp:Button ID="Button1" runat="server" OnClick="btnSaveStation_Click" Text="حفظ"
                                            CssClass="graybutton" ValidationGroup="St" />
                                        &nbsp;<asp:Button ID="btnexit" runat="server" CssClass="graybutton" OnClick="btnexit_Click1"
                                            Text="انهاء" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 90px">
                                    </td>
                                    <td>
                                        <asp:Literal ID="lbltestStation" runat="server" Visible="False"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </asp:Panel>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div id="search">
                    <asp:Panel ID="plsearch" runat="server">
                        <fieldset>
                            <legend id="" class="opendot">البحث</legend>
                            <table dir="rtl" style="width: 80%; float: right">
                                <tr>
                                    <td nowrap="nowrap" style="width: 89px">
                                        نوع الإيراد
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlExpSe" runat="server" AppendDataBoundItems="True" CssClass="LstCamp"
                                            DataTextField="Name" DataValueField="Id" Width="150px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap" style="width: 89px">
                                        الشاشة
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlScreenSe" runat="server" AppendDataBoundItems="True" CssClass="Lstdist"
                                            DataTextField="Name" DataValueField="Id" Width="150px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 89px">
                                    </td>
                                    <td>
                                        <asp:Button ID="btnsearch" runat="server" OnClick="btnsearch_Click" Text="بحث" CssClass="graybutton" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 89px">
                                    </td>
                                    <td>
                                        <asp:Literal ID="lbltestStationSearch" runat="server" Visible="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 89px">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblRecordNo" runat="server"></asp:Label>
                                        <asp:GridView ID="gvEx_Sec" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                                            OnPageIndexChanging="gvEx_Sec_PageIndexChanging" OnRowDeleting="gvEx_Sec_RowDeleting"
                                            AlternatingRowStyle-CssClass="GridItemAltername" CssClass="Grid" FooterStyle-CssClass="GridHeaderFooter"
                                            HeaderStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" 
                                            Width="354px">
                                            <Columns>
                                                <asp:BoundField DataField="Expense_Name" HeaderText="نوع الايراد" SortExpression="Expense_Name" />
                                                <asp:BoundField DataField="Screen_Name" HeaderText="الشاشة" SortExpression="Screen_Name" />
                                                <asp:CommandField DeleteText="حــذف" ShowDeleteButton="True" />
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 89px">
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 89px">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;<asp:Button ID="btnNew" runat="server" CssClass="graybutton" OnClick="btnNew_Click1"
                                            Text="إضافة" />
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </asp:Panel>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
